home *** CD-ROM | disk | FTP | other *** search
/ Mac Format 1994 August / August CD.bin / Shareware / This month's reviews / ZTermXK ƒ / Original v.0.9 docs / Original Docs for ZTerm v 0.9 next >
Text File  |  1992-07-16  |  88KB  |  1,764 lines

  1.  
  2.  
  3. ZTerm Version 0.9XK — 16 July 1992
  4.  
  5.  
  6. by
  7.  
  8. David P. Alverson 5635 Cross Creek Court Mason, OH 45040-2448
  9.  
  10. Documentation re-edited and supplemented by The Atlanta ZTerm
  11. Appreciation Society
  12.  
  13.  
  14. Latest version and support available from: GEnie Mac RT, Category 5,
  15. Topic 8 CompuServe: Mac Communication Forum America Online: Mac Comm &
  16. Network Forum
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25. ZTerm is a shareware telecommunications program for the Macintosh. It
  26. features many file-transfer protocols, including ZModem, YModem,
  27. XModem and CompuServe B-Plus/Quick-B. It also supports two major
  28. termulation emulations, VT-100 and ANSI-BBS, including support for
  29. color. ZTerm has an efficient scroll back buffer, which saves text
  30. scrolling off the top of the screen (the size is limited by available
  31. memory, so it’s easy to expand or contract the buffer). ZTerm uses a
  32. Phone List file to hold many Dialing phone names, numbers, and the
  33. setups for each one.  Each setup contains the phone number, port
  34. settings, and many other adjustable setting   s.
  35.  
  36. The name of each dialout service appears in the Dial menu to allow
  37. easy connection to all of them. It’s MultiFinder and System-7
  38. friendly.  It supports 9- and 12-point text and a resizable terminal
  39. window. It requires 512k, the 128k ROM or later and System 4.1 or
  40. later.  The shareware fee is $30 US (registration only) or $40 US (to
  41. receive registration and a disk with the latest version of ZTerm).
  42.  
  43.  
  44. The ZTerm program and this documentation are Copyright © 1989-92,
  45. David P. Alverson.  It may not be distributed commercially without
  46. permission.  It may be redistributed non-commercially (electronically
  47. or magnetically) as long as all of the files are kept together and are
  48. unmodified. (Note from the Atlanta ZTerm Appreciaton Society: Sorry
  49. about that last one, Dave!)
  50.  
  51.  
  52. 1.    Introduction
  53.  
  54. Terminal Emulation:
  55.  
  56.  The purpose of a terminal emulator is to connect your computer to
  57. another computer, either through a modem or via a direct connection
  58. such as a PBX system in the work environment.  Terminal emulation
  59. software running on your Mac makes it act like a video display
  60. terminal (“VDT”), which writes incoming information on the computer’s
  61. screen and sends the characters you type out through a serial port to
  62. the other computer.
  63.  
  64. ZTerm support file transfers, so you can send or receive Macintosh
  65. documents and files to and from the other computer, compressed or
  66. uncompressed, with high efficiency and with error detection and
  67. recovery.
  68.  
  69. The most common uses of a terminal emulator are: 1) to connect to
  70. another Mac or PC at a home or office to exchange files with that
  71. “remote” computer; 2) to connect to a bulletin board system (BBS) or
  72. to an online service such as GEnie, America OnLine, or CompuServe, to
  73. read and send messages and download files; 3) to connect to a
  74. mainframe or Unix system for file or data entry or retrieval.
  75.  
  76.  
  77. Shareware
  78.  
  79. Shareware is a means of distributing software that lets you evaluate
  80. the software before committing your money.  Shareware is distributed
  81. on bulletin board systems, via online systems, and from user to user.
  82. When you get a shareware program, you have the opportunity to try it
  83. out for some period of time to see if it satisfies your needs.  After
  84. trying it, you must either send the registration fee to the author or
  85. stop using the program.  In addition, once you register, you normally
  86. won’t have to pay for updates.  (This really depends on the shareware
  87. author; many don’t request additional fees for updates once you are
  88. registered.)
  89.  
  90.  
  91. Registration
  92.  
  93. After using ZTerm for 30 days, you must either register or delete any
  94. copies that you have.  Registration has the following benefits:
  95. support of the further development of quality Mac software, use of
  96. ZTerm without a guilty conscience, details of future plans, and
  97. telephone support.  Registration is only $30 (US); the “special” $40
  98. registration includes a disk of the current ZTerm version, which I’ll
  99. promptly mail to you upon receipt of your registration.
  100.  
  101. If you use a Purchase Order, you must order the $40 registration with
  102. disk (in our experience, most companies like to receive something
  103. before paying the bill).  All payments must be made in US funds.  If
  104. you don’t have the registration form (ZTerm Registration), just send
  105. your check and your name and address to:
  106.  
  107.     David P. Alverson
  108.     Alverson Software
  109.     5635 Cross Creek Court
  110.     Mason, OH 45040-2448
  111.  
  112. International Users: Registration must be made in US funds.  An
  113. International Money Order, a check drawn on a US bank, or US currency
  114. are all acceptable.  At this time, I cannot accept payment by Visa
  115. MasterCard, etc.  (Also, I’ve received a few checks with ‘Not
  116. Negotiable’ written on them.  Please don’t do this; to U.S. banks,
  117. this means “Do not honor this check.”  So, please put “Not
  118. Transferable,” instead of “Not Negotiable,” if you must.)
  119.  
  120. Online upport is via:
  121.     GEnie:  ZTERM
  122.     Compuserve:  72155,1560
  123.     America Online:  ‘DaveZTerm’
  124.     Internet:  davea@tso.uc.edu
  125.     AppleLink:  ALVERSON.SW
  126.  
  127. Online support information:
  128.     On GEnie, support is currently available by leaving me a message
  129. in the Mac RT Bulletin Board, Category 5, Topic 8.  On CompuServe,
  130. leave a message in the MacComm forum, section 3 (Term Programs) to
  131. 72155,1560.  On America Online, leave a message in the ZTerm folder in
  132. the Communications & Networking forum. On Usenet, I try to read the
  133. comp.sys.mac.comm group when I can.  Registered users will receive my
  134. phone number for telephone support.
  135.  
  136. The latest version of ZTerm will always be available in the Mac RT on
  137. GEnie, in CompuServe's MacComm forum, and in the Communications forum
  138. on America Online.
  139.  
  140. Acknowledgements:
  141.  
  142. I would like to briefly thank some of the people who have helped me
  143. with testing, bug reports and other helpful comments and suggestions:
  144. Verne Arase, Rick Dieringer, Ron Duritsch, Rob Elliot, Bill Johnson,
  145. Gary Johnston, Eric Larson, Steve Levinthal, Dave Platt, Gary Shell,
  146. Stephan Somogyi and many others; and, also, the Cincinnati AppleSiders
  147. User Group and the Programmers SIG.  The ZTerm icon was inspired by
  148. one that Kenroy Harrison sent to me.  My thanks to Chuck Forsberg, for
  149. designing a top-notch transfer protocol in ZModem.  And, especially,
  150. to my wife, for her understanding and patience.  My appreciation to
  151. everyone else who has made useful comments and suggestions.  And a
  152. special thanks to those who have supported further ZTerm development
  153. by registering.
  154.  
  155. 2.    Getting Started
  156.  
  157. System Requirements
  158.  
  159. ZTerm was designed to run on a machine with at least 1 megabyte of
  160. memory, using the MacPlus or later ROMs, and running System 4.1 or
  161. later.  It might possibly run on earlier systems/ROMs, but I don’t
  162. have the equipment to test this.  I’ve made every attempt to make
  163. ZTerm usable by the largest number of users.
  164.  
  165. Installation
  166.  
  167. In most cases, the only file you’ll need for installation is the ZTerm
  168. application itself.  You can also use the ZPhoneList file that is
  169. distributed with ZTerm, if you wish (it’s just a sample).  If ZTerm
  170. doesn’t find a ZPhoneList file in the same directory as the
  171. application, it will create a new (empty) one ready to fill with names
  172. and phone numbers.
  173.  
  174. If you’re using a Mac 512 or Mac Plus with System 7, you’ll need to
  175. install the ZTerm Keyboard file into your System in order to be able
  176. to use the Option key as a Control key.  This should only be used with
  177. the US System software, because it’s a modified version of the US
  178. keyboard resource.  If you’re using a non-US system, you can tell
  179. ZTerm to use the Command key as a Control key by adjusting the
  180. settings in the Terminal Preferences dialog.
  181.  
  182. Now you’re ready to run ZTerm and to set it up for placing outgoing
  183. (or receiving incoming) calls or connections to other computers.
  184.  
  185. Setting Preferences
  186.  
  187. The top half of the Settings menu is comprised of various settings
  188. which can be unique for each service (“service” is the word we’ll use
  189. in this documentation — and at many points in ZTerm itself — for one
  190. of the names/phone numbers you’ve set up for dialing).  All the
  191. options in these settings dialogs are stored separately for each
  192. service, and so each service, as we said before, can have unique
  193. settings that match its requirements.
  194.  
  195. The lower half of the Settings menu — the items below the dividing
  196. line in the menu — is for “global” preferences, which apply to all
  197. services. We’ll explore these “global” settings, first...
  198.  
  199. Pull down the Settings menu and select (click on) the General
  200. Preferences item. When the dialog box opens, you’ll see several areas
  201. where information can be set or entered. The “TEXT File Creator,” for
  202. example, determines which editors or word-processing programs will be
  203. able to open and read any text files created by ZTerm. If you “mouse
  204. down” on the box next to the words “TEXT File Creator“ (mousing down
  205. is the same as clicking on the box and holding the mouse button down),
  206. a pop-up menu will appear with various possible selections. When you
  207. select one of the text format names, the corresponding designation for
  208. the file Creator will appear in the right-hand box. Or, if you wish,
  209. you can enter a Creator’s “signature” letters directly into the
  210. right-hand box. Click on OK, then select Terminal Preferences. Change
  211. the font size if desired.  The custom terminal fonts in ZTerm are in 9
  212. or 12 point. Any other size will not look very good.  If you have a 9
  213. inch screen, you will probably want to use the 9 point font to be able
  214. to get a 24 by 80 terminal window. If you have a larger monitor, you
  215. may want to use 12 point, which is easier on the eyes.
  216.  
  217. Now select Modem Preferences.  First, select the port that your modem
  218. or connection is attached to.  The Initialization string is sent to
  219. your modem when you start ZTerm.  In many cases, you can leave this
  220. empty and ZTerm will work fine.  But if you use other communications
  221. software, it might leave your modem in a different configuration.  For
  222. example, some software might set your modem to send “numeric result
  223. codes” instead of “verbal result codes.”  When most Hayes compatible
  224. modems connect, the verbal result code is CONNECT 2400 (or some other
  225. speed).  The numeric result would be 10 (or 1 or 5).  ZTerm wants to
  226. see the verbal responses, so setting the modem to verbal result codes
  227. is a good thing to put in the initialization string.  The default
  228. initialization string for ZTerm is “ATE1V1^M”.  The AT is used to get
  229. the modems attention for a command.  E1 means to turn on the echoing
  230. of commands.  V1 tells it to use verbal result codes.  The ^M means
  231. Control-M, which is the same as a RETURN.  This tells modem that you
  232. are finished typing, and to process the command.  The init string that
  233. I use is ATE1V1S11=70^M.  The S11=70 means to set register 11 to a
  234. value of 70.  Register 11 sets the duration and spacing of touchtones
  235. in milliseconds.  On my modem, the default is 95, so setting it to 70
  236. makes it dial a little faster.  See the section on modem commands for
  237. more information.
  238.  
  239. The DeInitialize string is like the Initialization string, but it is
  240. sent when you quit ZTerm.  You can usually leave this blank, but you
  241. may want to use it to disable something that you turned on in the init
  242. string.  For example, if your init string turns on the auto answer
  243. feature of the modem, you may want to turn it off when you exit ZTerm.
  244.  
  245. The Dial Substitution strings can be used for things that could be
  246. common to several services.  I have set •1 to “*70,” which will
  247. disable call waiting.  Then I can put •1 in front of the phone number
  248. for a service, and it will dial the *70 first.  The comma after the
  249. zero causes a pause in the dialing, usually one second.  You could use
  250. one of the dial substitutions for your long distance numbers.  You
  251. might normally set it to “1”, so it will use your normal long distance
  252. carrier, but if you wanted to try another, you could change the string
  253. to something like 10288, which will dial long distance using AT&T.
  254.  
  255. In the Color Preferences, you may want to check the Use Color option
  256. if you call PC based bulletin boards and you have a color monitor.
  257. Finally, use the Receive Folder selection to set the folder that you
  258. want downloaded file to go to.
  259.  
  260. Adding a New Service Now let’s add a dial entry for a service that you
  261. use a lot, like a local bulletin board.  First, select Directory from
  262. the Dial menu.  Now click on the New button.  This will bring up the
  263. connection dialog, with the service name and phone number blank. Enter
  264. the name for the service.  This will appear in the dialing directory
  265. and the Dial menu, so you don’t want a super long name. Enter the
  266. phone number for the service.  Select the highest data rate that you
  267. know your modem and the service can handle.  Choose 8 data bits and no
  268. parity, unless you know that another format is required. The most
  269. common alternative is 7 data bits with either even or odd parity. This
  270. is more common on mainframes; almost all bulletin boards that run on
  271. personal computers will accept 8 data bits, no parity. Select 1 stop
  272. bit.
  273.  
  274. If you know the service does not echo what you type, check the Local
  275. Echo option.  Most BBSs do echo what you type, so in most cases you
  276. leave this unchecked.  You can usually leave XOn/XOff checked because
  277. most services support it.  If you have a high speed modem and a
  278. hardware handshake cable, check that option.  See the section on High
  279. Speed modems for more things you may need to set up.  Click on OK and
  280. your new entry will now appear in the Dial directory and the Dial
  281. menu.
  282.  
  283. Now highlight your new service in the directory and click on the
  284. Terminal button, which brings up the Terminal settings dialog.  The
  285. ‘No Extended Chars’ option should be checked unless you know the
  286. service uses extended characters.  Extended characters are usually
  287. generated with the Option key and include the foreign characters and
  288. special symbols.  If the service uses “ANSI graphics” you will want
  289. this option unchecked, and click on the PC ANSI-BBS emulation button.
  290. If the service is a Unix or DEC system, you will probably want to
  291. click on VT-100 emulation.  If you use the VT100 keypad with this
  292. service, you should check that option.  On many DEC systems, you will
  293. want to check the “Send RUBOUT for Backspace/Delete” option.  Click on
  294. OK.  Now with the highlight still on the service you just added, click
  295. on the Set button.  The settings you just made for this service will
  296. be loaded and the window title will change to the name of the service
  297. to show you what settings are loaded.
  298.  
  299. The Text Pacing options are used when you are pasting to the modem, or
  300. sending a text file.  See “Uploading a composed message” in the
  301. Terminal Functions section for more information on these settings. For
  302. now you can leave them as is.
  303.  
  304. Now select the Transfer Options command.  The first two items set the
  305. default send and receive protocols for this service.  A file transfer
  306. protocol is the set of rules two computers use to transfer a file from
  307. one to the other.  You can start a file receive with the default
  308. protocol using Command-R and file send (default send protocol) with
  309. Command-S.  The Command key is the one with the Clover-leaf (or Apple
  310. symbol) on it.  It is usually used to select menu items with keyboard
  311. equivalents, like Command-Q to quit.
  312.  
  313. If you know what protocols the service supports, you can select these
  314. now.  If you don’t, you can always set them later.  Note that the
  315. B-Plus or Quick-B protocols used by Compuserve are not listed.  This
  316. is because a B-Plus transfer on Compuserve is started by the
  317. Compuserve host by sending a special sequence.  There is no menu in
  318. ZTerm to start a B-Plus transfer.  If the service you are setting up
  319. is Compuserve, make sure you check the “CIS B+ / Quick-B Protocol”
  320. option.  For X/YModem Error Checking, the “Try CRC, fallback to
  321. Checksum” option is usually the best.  For the Sent Filenames option,
  322. the safest choice is “Remove funny characters.”  If the service is a
  323. BBS running on an MS-DOS computer, you will want to select “MS-DOS
  324. (8.3) limits.”  Click on OK.
  325.  
  326. If the service supports ZModem transfers, you may want to set the
  327. ZModem Options now.  If the service is a Unix or Opus host, you can
  328. click one of those buttons, otherwise don’t worry about that part. Set
  329. the SubPacket Length to Auto and leave the remaining items blank or
  330. unchecked. Click on OK and you now have made all the settings for the
  331. service you just added.
  332.  
  333. Calling the New Service So why not try calling this new service. There
  334. are two ways to dial a service.  You can select it from the Dial menu,
  335. or you can highlight it in the Dialing Directory window and click on
  336. the Dial button.  ZTerm will bring up the Dialing status window, which
  337. will show the name of the service and the number it is dialing.  If
  338. the number is busy, it will usually show either BUSY or NO CARRIER in
  339. the Response field.  The Attempts field shows how many times it dialed
  340. but failed to connect.  It will keep trying until it connects
  341. successfully or you Cancel it with the Cancel button or hitting the
  342. ESC key.  When it does connect, the dial status window will go away
  343. and it will print the connect message in the terminal window.  Now
  344. that you are connected, you can log in and read messages or whatever
  345. you use the service for.
  346.  
  347. Downloading a File When you want to download a file, you first must
  348. know what protocol is supported by the service and ZTerm.  On most
  349. BBS’s, you can get a list of the supported protocols when you select
  350. the download command.  XModem is supported by nearly all BBS software,
  351. so we will describe XModem downloads first.  You need to know the name
  352. that the BBS uses for the file; there will be one or more commands you
  353. can give the BBS to list the files available for download.  Also, the
  354. files are usually separated into different areas to make searching
  355. easier.  You also need to know the command to start a download.  Many
  356. BBS’s use ‘D’ for download.  Next it will usually ask you what
  357. protocol to use.  For this example, select XModem (or XModem-1k if
  358. available).  It will also ask you what file you want to download.
  359.  
  360. Some systems may ask you additional questions (for example, if you
  361. want to be automatically logged off when the transfer is complete).
  362. When all is ready, the BBS will usually print a message telling you
  363. that it is ready to start the download.  Now you must tell ZTerm to
  364. start receiving the file.  Pull down the File menu and select XModem
  365. from the Receive files sub-menu.  (If the default receive protocol is
  366. set to XModem, you can just select the Receive XModem command.)  ZTerm
  367. will display the file transfer status window and the transfer should
  368. start in 5 to 10 seconds.  If nothing has started after 30 seconds,
  369. something has probably gone wrong.  In this case, you should hit the
  370. Cancel button and try to start the download again.
  371.  
  372. If the BBS supports the ZModem protocol, you should use it instead of
  373. XModem because the procedure is much simpler and faster.  Tell the BBS
  374. you want to download, tell it to use ZModem and give it the name of
  375. the file.  The BBS will send a sequence that will cause ZTerm to
  376. automatically start receiving the file using the ZModem protocol.
  377. ZTerm will display the transfer status window and the transfer will
  378. begin.
  379.  
  380. Note that XModem and YModem require you to start the file transfer on
  381. the other computer first, by issuing the download command, then
  382. starting a file receive in ZTerm.  ZModem and the CompuServe B-Plus
  383. and QuickB protocols only require you to tell the other computer to
  384. start sending the file, and ZTerm will detect this and start receiving
  385. the file automatically.
  386.  
  387. Reviewing the Session If you connect to a service that you have to pay
  388. for per minute, then you want to keep your time on the phone to a
  389. minimum.  This would include the pay services (CompuServe and GEnie,
  390. etc) as well as any BBS that you call long distance.  If you are
  391. reading messages on this type of service, the best thing to do is to
  392. have messages you are interested in displayed, but don’t take your
  393. time to read them while you are online.  Then, after you log out, you
  394. can scroll back in the buffer and read the messages at your own speed.
  395.  
  396. If you have the Extended keyboard, you can use Home, End, Page Up and
  397. Page Down to move around in the scroll buffer.  However, if the VT100
  398. Keypad option is turned on in Terminal Settings, you will need to hold
  399. down the Shift (or Option) key when you use these keys.  If you don’t
  400. press Shift (and the VT100 keypad option is checked), it will send a
  401. sequence of characters to the modem.
  402.  
  403. Printing a Message While you are reviewing the messages in the buffer,
  404. you see something that you would like to print out.  Select the text,
  405. either by click and drag, or by a click at the start and a Shift-click
  406. at the end, then choose Print Selection from the File menu.  This will
  407. give you the normal print dialog; click on OK or Print and off it
  408. goes.  If the selection includes PC graphics, you will have to make
  409. sure that you have the right font set in Print Options.  I normally
  410. keep the print font set to Times or Palatino.  But to print PC
  411. graphics you will need to set the print font to Terminal Font.
  412.  
  413. 3.    Terminal Functions
  414.  
  415. Scroll Back Buffer To me, one of the most important features in
  416. terminal program is its scroll back buffer.  This allows you to look
  417. back at words that zipped by on your screen a few minutes ago.  It
  418. should be simple, unobtrusive and fast.  ZTerm will save lines that
  419. are pushed off the screen by a line feed or a clear screen.  It will
  420. not put more than two blank lines in a row in the buffer.  This means
  421. if it receives a clear screen code and there are only two lines of
  422. information, you will NOT get 22 blank lines in the scroll back buffer
  423. (what a waste).  The buffer is stored in memory and when the buffer
  424. fills up, ZTerm will try to allocate more memory for the buffer.  If
  425. it cannot get more memory, ZTerm will remove lines from the top of the
  426. buffer (the oldest lines).  The scroll back buffer does not store any
  427. character attributes like bold or colors – it only stores the text.
  428.  
  429. You can scroll around in the buffer while data is coming in, while a
  430. file transfer is in progress and when ZTerm is dialing.  If you have
  431. the Extended keyboard, you can use Home, End, Page Up and Page Down to
  432. move around in the scroll buffer.  However, if the VT100 Keypad option
  433. is turned on in Terminal Settings, you will need to hold down the
  434. Shift (or Option) key when you use these keys.
  435.  
  436. The Find command in the Edit menu allows you to search the scroll back
  437. buffer for a sequence of characters.  Any changes to the search string
  438. will reset the search position to  the top of the buffer (the oldest
  439. line).  Clicking in the terminal window will set the search position
  440. to the line you clicked on.  After you have found an occurrence, if
  441. you click the Find button again (or use the Find Again command) it
  442. will find the next occurrence.  If it beeps, the string could not be
  443. found.
  444.  
  445. When you select text in the scroll back buffer, you can Cut, Copy or
  446. Clear it, and you can save it to a text file (Save Selection), or
  447. append it to an existing text file.  Cut and Clear will not remove
  448. text from the last 24 lines because it is not in the scroll back
  449. buffer yet.  If the clipboard has text on it, Paste will start sending
  450. the text as if you were typing it, using the options selected in Text
  451. Pacing.  Command-Period will cancel a Paste command.
  452.  
  453. Append Selection to a File Many people will store messages that they
  454. see in a file on their Mac, in case they want to refer to it later.
  455. For example, I store lots of messages that I see about ZTerm.  For
  456. each of the services that I frequent, I have a folder and in it I have
  457. a file for every month that holds the messages I saved that month.
  458. When you use the Append to... command, it will add the selected text
  459. to the end of the file you pick.  It will also change the “last append
  460. file” to that file.  The name of this file will appear in the next
  461. menu.  When you see another message you want to save, you can append
  462. it to this file by using this second append command (or use
  463. Command-Shift-N).
  464.  
  465. Uploading a Composed Message Many times when you want to post a
  466. message or a reply on a bulletin board, you might want to compose the
  467. message when you are offline.  This is especially true if you are
  468. going to post the message on a service that charges per minute.  So
  469. you type your message using your word processor or text editor and
  470. save it in TEXT format.  Some editors always use TEXT format (like
  471. miniWriter, TeachText, McSink or QUED).  Most word processors have
  472. their own file format that includes lots of formatting information in
  473. addition to the text.  But most will let you save a file in a TEXT
  474. only format.  Some give this option in the Save As dialog (like Word
  475. 4, with full menus on).  Others have a separate menu command;  MS
  476. Works has the Export command, which saves the file in a TEXT format.
  477.  
  478. When you select the Send Text command and choose a text file to send,
  479. ZTerm will send the text in the file like you are typing it.  When you
  480. are typing or sending a message to a service or BBS, some want you to
  481. hit return when you get near the right margin.  Others will
  482. automatically wrap text to the next line, just like most word
  483. processors do.  When you are composing a message for a service without
  484. auto-wrap, you will need to break the lines yourself by entering a
  485. return at the end of each line.
  486.  
  487. Text Pacing When you are sending a composed message with the Send Text
  488. command, ZTerm can send the text a lot faster than most people could
  489. type.  Some services can’t handle received the text at such a high
  490. rate and could lose characters.  In these cases, you need to use Text
  491. Pacing, which is a means to slow down the rate that the text is sent.
  492.  
  493. The first option in Text Pacing Options is Wait for char echo.  This
  494. is the slowest and most conservative option.  When ZTerm sends a
  495. character from your text file, it will wait until that character is
  496. echoed back before it sends the next one.  This will only work with
  497. services that echo what you type.  Most do; GEnie is one that does
  498. not.  If you don’t use wait for echo, you can use the remaining
  499. options to slow things down.  When the line prompt character is filled
  500. in, ZTerm will wait until that character is received (after a line has
  501. been sent), before it starts sending the next line.  The last two
  502. options let you set a delay after each character and after each line.
  503. The values are in sixtieths (1/60) of a second, so a value of 30 would
  504. be one half second.  If you use a delay between characters, it
  505. normally would be small, say between 1 and 5.  Typical values for the
  506. delay between lines would be between 10 and 60, but could go even
  507. higher.
  508.  
  509. If you leave all these options blank or off, ZTerm will send the text
  510. as fast as it can.  Many BBS’s run on personal computers will be able
  511. to handle this if the computer is handling only one line and is not
  512. doing any other processing.
  513.  
  514. Person to Person Modem Connection There are times when you may want to
  515. connect to a friend’s Mac (or PC), usually to transfer some files. The
  516. easiest way is for one side to enable auto answer and have the other
  517. person call.  For example, I could enable the auto answer feature in
  518. my modem and tell my friend to dial me through his modem. The modem
  519. command “ATS0=1” will enable auto answer on most Hayes compatible
  520. modems.  This command tells the modem to set register zero to a value
  521. of 1.  The zero register selects how many rings before the modem will
  522. answer the phone and try to establish a connection.  You can even add
  523. an entry to your dialing directory called “Auto Answer On” and set the
  524. phone number to “ATS0=1”.
  525.  
  526. For a person to person connection, you usually want to turn on Local
  527. Echo so you can see what you are typing.  When I connect like this, I
  528. always exchange a hello, etc, to make sure that the connection is OK.
  529. Then if I am sending a file to him, I use ZModem so that he will not
  530. have to do anything to start the transfer (because ZModem has the
  531. autodownload feature).
  532.  
  533. Keyboard Buffer The keyboard buffer is most useful for online
  534. conferences (for example, on GEnie or CompuServe).  Selecting this
  535. command will bring up a keyboard buffer window and you can type into
  536. this window and perform any editing.  When you hit RETURN, the
  537. contents of the buffer are sent out.  If you have ever tried sending a
  538. message during a conference without a keyboard buffer, you know how
  539. confusing it can get.  If other users send messages while you are
  540. typing your message, the characters of your message can get mixed in
  541. with the other messages and get spread over several lines.  With the
  542. Keyboard Buffer, you type your entire sentence locally (and edit it if
  543. needed) and its all sent out when you hit return.
  544.  
  545. Dialing Directory ZTerm uses the ZPhoneList file to hold setups for
  546. the various services or BBS’s that you like to call.  Each setup will
  547. appear in the Dial menu and in the Dialing Directory window.  Each
  548. Dial setup will save all of the settings from the Settings menu above
  549. the dividing line. The ZPhoneList file also contains some global
  550. settings that apply to all setups.  You can have multiple phone list
  551. files.  If you open ZTerm, it will look for ZPhoneList in the same
  552. folder and if its not there it will create it.  However, you can
  553. double click on a phone list file and ZTerm will use it.  You can
  554. create different phone files by renaming or duplicating one that ZTerm
  555. has created.
  556.  
  557. The Dialing Directory window is where you do all your maintenance of
  558. the phone list.  You add a new service with the New button.  Delete
  559. will let you remove the highlighted service.  You can edit the
  560. connection settings by highlighting the service and using the
  561. Connection button (or double click on the service).  You can rename an
  562. entry by changing the name in the Connection settings window.  The
  563. Manual button lets you enter a number to dial without adding it as a
  564. new service.  The Set button will load the settings of the highlighted
  565. service without dialing it.
  566.  
  567. Queue Dialing If there are several busy BBS's that you would like to
  568. connect to, you can mark them for Queue dialing and ZTerm will call
  569. each one, round robin, until you connect to one (or Cancel the
  570. dialing).  Setups can be marked or unmarked in the Dialing directory,
  571. by using the Mark and Unmark buttons, or clicking in the leftmost
  572. column of an entry.  They can also by marked by selecting the service
  573. in the Dial menu with the Shift key held down.  ZTerm will
  574. automatically mark an entry when a dial attempt fails, and will unmark
  575. an entry when a connection is made.
  576.  
  577. ANSI Graphics The emulation that I call “PC ANSI-BBS” is called many
  578. things by many people.  Two things make up this emulation: a font that
  579. is used by PC’s, which include a lot of line and box drawing
  580. characters; and handling the escape sequences that most PC BBS’s use.
  581. These sequences are pretty much the VT100 sequences (based on the ANSI
  582. X3.64 specification), with additional sequences to change foreground
  583. and background colors.  If any of the services you call are BBS’s run
  584. on a PC, you should set the emulation for that BBS to PC ANSI-BBS in
  585. the Terminal Settings.
  586.  
  587. Call Waiting Call Waiting is an option available from many telephone
  588. companies that can cause problems with modem communication.  With this
  589. option, when you are using the phone and someone tries to call you,
  590. you will hear a short beep.  This is fine when you are talking, but
  591. when it’s your modem using the phone, the beep can get the modem real
  592. confused.  You will probably get some garbage characters received or
  593. the modem could hang up.  Most modem users with call waiting disable
  594. this feature when making a modem call.  If you have TouchTone service,
  595. you dial *70 then dial the number.  For rotary service, you would dial
  596. 1170 then the number.  These codes are the most common, but your
  597. telephone company may use other codes to disable call waiting.
  598.  
  599. So in the connection settings, you would put “*70,xxx-xxxx” for the
  600. phone number.  The comma adds a short delay for the phone company to
  601. handle the disable function.  Another way would be to set one of the
  602. dial substitution strings, say •1, to “*70,” in the Modem Preferences.
  603. Then you can put •1 in front of each phone number, like “•1 xxx-xxxx”.
  604. If you ever wanted to have call waiting enabled during a call, you
  605. could go to Modem Preferences and change •1 to no characters. 4. File
  606. Transfers
  607.  
  608. X Y Z Modem XModem, YModem and ZModem are names of file transfer
  609. protocols, which are a set of rules that two computers can use to send
  610. a file from one computer to the other.  A protocol will usually
  611. provide error detection and correction, by re-sending the portion that
  612. was received in error.  XModem is the first public domain protocol
  613. developed for use with microcomputers and is one of the most widely
  614. supported.  It was developed by Ward Christensen back in 1977.
  615.  
  616. YModem is a variation of XModem that sends an additional block of
  617. information before the file is sent.  This block zero contains the
  618. file name, size and modification time and date.  Because the file name
  619. is sent with the file data, files could be sent in batches, which is
  620. why this protocol is sometimes referred to as YModem-Batch.  YModem
  621. was developed by Chuck Forsberg in his YAM (Yet Another Modem)
  622. program.
  623.  
  624. YModem-G is a variation of YModem that is useful for direct
  625. connections to another computer or when using error correcting modems.
  626. The receiver does not send any ACKs, so the sender just pumps out the
  627. file as fast as it can.  If an error is detected, the transfer is
  628. stopped.  There is no error recovery.
  629.  
  630. The ZModem protocol was developed for the public domain under a
  631. Telenet contract.  Its goal was to “alleviate the throughput problems
  632. network customers were experiencing with XMODEM and Kermit file
  633. transfers.”  It was developed by Chuck Forsberg/Omen Technology.  It
  634. overcomes many weaknesses of older protocols and adds several useful
  635. capabilities.  For additional information on the ZModem protocol, look
  636. for the file YZMODEM.ARC available on many BBS's, including
  637. TeleGodzilla: 503-621-3746.
  638.  
  639. Omen Technology continues to enhance the ZModem protocol, adding
  640. proprietary new features.  The extended protocol is referred to as
  641. ZModem-90.  ZTerm does not implement any of these new features because
  642. they are not in the public domain, and would require a hefty licensing
  643. fee to use them.
  644.  
  645. ZModem The ZModem file transfer protocol is arguably one of the best
  646. general purpose file transfer protocols for personal computers.  Some
  647. of its features include:
  648.  
  649. •    various options to let it operate efficiently in a wide range of
  650. communication environments.  The most common mode is full streaming,
  651. where there is no wait between blocks—the receiver only talks when he
  652. has an error. •    the sequence that starts a file transmission can be
  653. detected by the receiving communication software, which can then
  654. trigger its receive routines.  This is sometimes referred to as
  655. AutoDownload. •    Crash Recovery - A file transfer that is interrupted
  656. by modem disconnection (or other reasons) can be restarted and it will
  657. pick up where it left off.  Note: if the Mac crashes or loses power
  658. during a transfer, you may not be able to restart the transfer because
  659. the partial file was not closed by ZTerm. •    All ZModem transfers are
  660. batch transfers:  multiple files can be sent per transfer, each file
  661. is sent with its file name, file size and date of last modification. •
  662. 32 or 16 bit CRC's will error check all blocks: data blocks and
  663. control messages.
  664.  
  665.  
  666. For receiving files using the ZModem protocol, just start the sender
  667. and ZTerm will detect that it should start receiving files with
  668. ZModem.  On the Opus BBS for example, to download the file
  669. “newfiles.txt” just type “dz newfiles.txt” and ZTerm will receive it.
  670.  
  671. For sending files using ZModem, ZTerm can send a command sequence to
  672. put the receiver in a receive ZModem mode.  In the Settings menu,
  673. ZModem Options will bring up a dialog that includes the command to
  674. send to put the other end into ZModem receive.  For Opus, this should
  675. be set to “uz” followed by a return.  When you select Send ZModem, you
  676. will first select what files to send.  When you start the transfer,
  677. ZTerm will send the sequence from the ZModem Options and then the
  678. transfer will start.
  679.  
  680. Binary File Type Detection ZTerm will detect certain types of binary
  681. files, and set the appropriate creator and type for the kind of file.
  682. It detects the type by either looking for a specific sequence of bytes
  683. at the start of the file (a signature) or by matching the end of the
  684. file name (e.g. the extension of an MS-DOS file).  See the appendix on
  685. ZTerm resources for additional information.
  686.  
  687. Text Detection and Conversion When ZTerm is receiving a file, it
  688. inspects the first 128 bytes to determine if it should be treated as a
  689. text file.  If all of these bytes are Macintosh printable characters
  690. or typical text control characters (return, line feed, tab, etc), then
  691. it is considered a text file.  The file type will be set to TEXT and
  692. ZTerm will perform End of Line conversion.  If the text has CR/LF at
  693. each line end, ZTerm will filter out the LF.  ZTerm currently does not
  694. filter any other control characters.
  695.  
  696. Resume an Interrupted Download If a download is interrupted by
  697. disconnection, Cancel, or whatever (but not a power failure - the file
  698. won’t be closed properly) it can restart where it left off using
  699. ZModem.  A partial file will have the original file name with a bullet
  700. (•) at the end.  If you try to download a file and a file with the
  701. same name plus a bullet at the end is already in the current receive
  702. folder, ZTerm will resume the download where it left off.
  703.  
  704. MacBinary II ZTerm supports the original MacBinary format for the
  705. complete transfer of Macintosh files and their additional file
  706. information.  The MacBinary II standard (dated July 1987) is also
  707. supported.  The file transfer status dialog will display either
  708. ‘MacBinary’ or ‘MacBinary II’ when that format is being used.
  709.  
  710. Performance Log Each time you transfer a file with ZTerm, it will
  711. place an entry in its performance log file.  The file is named “ZTerm
  712. Xfer Log” and it is stored in the same directory as ZTerm.  It is a
  713. standard TEXT file with TABs between each field, so it can be imported
  714. to many spreadsheets, databases, etc.  Since this file could grow
  715. large, you may want to periodically rename it.  At the end of the
  716. year, I rename mine to have the year at the end of the name.  The
  717. transfer log can be disabled in General Preferences.
  718.  
  719. Transfer Efficiency Calculations I don’t know if there is an accepted
  720. procedure for transfer efficiency calculation, so I will just explain
  721. how I am currently calculating efficiency.  All ZTerm timings use the
  722. Macintosh TickCount, which has a resolution of 1/60th of a second.
  723.  
  724. For receiving files using ZModem or YModem, the clock starts when
  725. “block zero” (the block with the file name and other information) is
  726. received.  This block zero is not the same as the MacBinary header.
  727. For XModem file receives, the clock starts just before the initial NAK
  728. (or whatever) is sent.  The clock stops when all file data is
  729. received, written and the file is closed.
  730.  
  731. For sending files using ZModem or YModem, the clock starts after block
  732. zero is sent.  For XModem, it starts when ZTerm starts waiting for the
  733. initial NAK.  The clock stops on ZModem file sends when the ZRINIT
  734. response is received for the ZEOF message.  For YModem and XModem, it
  735. stops when the ACK response is received for the EOT message.
  736.  
  737. The CPS figure (characters per second) is the total file bytes (does
  738. not include block zero) divided by seconds.  The efficiency figure is
  739. CPS times 10 bits per data byte divided by BPS (bits per second,
  740. sometimes called baud rate).
  741.  
  742. Hardware Handshake If you have a high speed modem or one with
  743. compression and error control (like MNP, V.42 and V.42bis), you may
  744. want to use hardware handshaking to get the most efficient file
  745. transfers.  This requires a correctly wired cable and additional modem
  746. configuration.  See the section on High Speed Modems.
  747.  
  748. Compressed Files The files available for download on BBS’s and online
  749. services are almost always in a compressed format.  There are several
  750. “archive” programs that will compress one or more files into an
  751. “archive file.”  In addition to reducing the time to transfer the
  752. file, it provides a means to make a package of several related files,
  753. so that anyone who downloads a package will get any necessary files.
  754. For example, the ZTerm archive file that I upload contains the
  755. program, this documentation file, and several other useful files.
  756. Packaging them together in one archive file will make sure that a
  757. downloader will get all the files.
  758.  
  759. Here are the file extensions for the common archive formats.  A file
  760. extension (which is more common with non-Mac operating systems)
  761. appears at the end of the file name and provides some indication of
  762. the type of file.
  763.  
  764. .cpt    Compactor format -- use Compact Pro or Extractor .hqx    BinHex
  765. format -- use BinHex 4.0, BinHex DA, any of the StuffIt programs,
  766. Compact Pro, or mcvert (for Unix). .sit    StuffIt format -- use any of
  767. the StuffIt programs. .sea     Self Extracting Archive.  Double-clicking
  768. on this should give you the uncompressed file. .pit     PackIt format,
  769. not used much any more -- use PackIt or any of the StuffIt programs.
  770. .image    DiskCopy images of a floppy disk.  This is the format used for
  771. the System software on many services.  Use the DiskCopy application to
  772. translate these back onto disks. .Z    Unix 'compress' files.  Uncompress
  773. with the Unix command 'uncompress' or on the Mac with MacCompress
  774. (available from sumex). .dd    DiskDoubler format.  Use DiskDoubler or
  775. DDExpand.
  776.  
  777.  
  778. MultiFinder ZTerm will operate in the background under MultiFinder or
  779. with System 7.  Once a file transfer is started, you can move ZTerm
  780. into the background.
  781.  
  782. CompuServe B-Plus and Quick-B Compuserve has its own file transfer
  783. protocol that is very efficient.  Quick-B was an interim protocol that
  784. was established while they finalized their current enhanced protocol
  785. which they call B-Plus.  When CompuServe asks you what protocol to use
  786. for downloading, you should pick the B-Plus option.  The QuickB option
  787. will also work just fine.  There is no menu entry to start a B-Plus
  788. transfer; Compuserve will send a sequence that will start the
  789. download.  Note: You must enable this option in the Transfer Options
  790. Settings.
  791.  
  792. Bonus Secret Feature #1: If you are using an Opus BBS system, and ask
  793. for a file listing and you see a file you would like to download, just
  794. hold down the Command key and double click on the file name.  ZTerm
  795. will send “dz” followed by the name that you double clicked, then a
  796. RETURN.  I would like to eventually make this feature more general to
  797. work with different systems.
  798.  
  799.  
  800. 5.    Scripting A script is a sequence of commands.  ZTerm scripts are
  801. stored in TEXT files, which you can create with a text editor or most
  802. word processors (you must save the file in a TEXT only format).  A
  803. script may be run from the “Run a Script” menu command, or by a macro
  804. string or automatically run by the dialer when you connect to a
  805. service.  If a macro string starts with ® (Option-R) followed by the
  806. name of a script file in the ZTerm directory, that script file will be
  807. run when you select that macro (from the Macro menu or with Command -
  808. number).  For example, I could set a macro label to “Read New” and set
  809. the macro string to “®readnew.zts” and when I select Read New from the
  810. Macros menu it would run the readnew.zts script file in the ZTerm
  811. directory.
  812.  
  813. Logon Scripts When ZTerm connects to a service, it will look for a
  814. text file with the same name as the service with a “.zts” on the end.
  815. For GEnie, it will look for a file called “GEnie.zts” in the ZTerm
  816. folder.  If it finds a file, it will run the script.
  817.  
  818. String constants can use any form of quote:  "one", 'two', “three”,
  819. ‘four’ Control characters in a string constant are specified with the
  820. ^ (carat) followed by the letter:  "^M" is control-M, which is the
  821. Return character.
  822.  
  823. Built-in variables $Account - string in the connection dialog
  824. $Password - string in connection dialog $Service - name of current
  825. service $Date - in the short format $Time - in hours, minutes and
  826. seconds $Day, $dd - day of month ($dd has zero fill) $mm - month $year
  827. $yy - low two digits of year
  828.  
  829. Script Commands Beep Beep <duration> -- if you are using the simple
  830. beep, you can give a duration.
  831.     Beep 4 ticks
  832.  
  833. Close capture -- close the capture file.
  834.  
  835. Display <string(s)> -- display text in the terminal window
  836.     Display “Connected at ” $time
  837.  
  838. Hangup -- hangup the modem (same as the menu command)
  839.  
  840. Open capture <capture file name> -- start capturing data to a file.
  841.     Open capture "GEnie.log"
  842.  
  843. Send <string(s)>
  844.     Send “CIS^M” -- send the string (^M is a return)
  845.     Send $account “,” $password “^M” -- send multiple strings
  846.  
  847. Wait <durations> -- pause a specified amount of time
  848.     Wait 2 seconds
  849.     Wait 40 ticks  -- a tick on the Mac is 1/60 second (40 ticks is
  850. 2/3 second)
  851.  
  852. Wait for quiet <duration> -- wait for no incoming data for the
  853. specified time.
  854.     Wait for quiet 4 seconds
  855.  
  856. Wait for prompt <string> -- check for the given string when data
  857. stops.
  858.     Wait for prompt “Username:”
  859.  
  860.  
  861. Comments -- these three forms make the rest of the line a comment: --
  862. HyperCard style comments # MPW style comments ;  another comment
  863. character.
  864.  
  865.  
  866. Example Script
  867.  
  868. # GEnie.zts - Simple logon script for GEnie wait 2 seconds
  869.  
  870. # send hhh with short delay between them send “h” wait 10 ticks send
  871. “h” wait 10 ticks send “h”
  872.  
  873. # wait for GEnie to prompt for your user ID wait prompt "U#"
  874.  
  875. # send the account and password (from connection settings) with comma
  876. between them # and a return (^M) at the end. send $account “,”
  877. $password “^M”
  878.  
  879. # send beep to wake up - you are logged in now beep 5 display
  880. "Connected at " $time
  881.  
  882. 6.    Modem Commands
  883.  
  884. A modem is controlled by sending it commands.  There are commands to
  885. configure a modem and commands to attempt a connection (the dial
  886. command).  ZTerm handles the dial command, but you may have to learn
  887. about some commands if you need to do any special configuration of
  888. your modem.  This section will explain some of the most common
  889. commands used by “Hayes compatible” modems.  Advanced modems will have
  890. additional commands which are not described here and in many cases
  891. will be unique to that brand of modem.  You will need to consult your
  892. modem manual for all of its commands and settings.  Some modems have a
  893. command that will print a summary of its commands.  On US Robotics
  894. modems, the commands AT$, AT&$, ATD$ and ATS$ will give a help summary
  895. on a portion of the modem commands.
  896.  
  897. There are three places in ZTerm where you can enter a modem command.
  898. In the Modem Preferences there are the initialization and
  899. deinitialization strings.  These two are to do any modem configuration
  900. needed when ZTerm starts and quits.  And in the Connection settings
  901. for each service there is the PreDial init string.  This is to make
  902. any modem configuration changes needed just for this service.  In
  903. addition, you can manually type a modem command in the terminal
  904. window.  This is a good way to try out modem commands or to do
  905. one-time changes.
  906.  
  907. All modem commands start with AT, which is sometimes referred to as
  908. modem attention.  You could put several modem commands together on one
  909. line.  In this case, the AT would only be used once, at the beginning
  910. of the line.  A command is processed by the modem when it receives a
  911. RETURN.
  912.  
  913. Here are some of the more common modem commands: ATA - answer an
  914. incoming call and attempt to connect. ATDT 5551212 - dial the number
  915. using touch tones. ATDP 5551212 - dial the number using pulse dialing.
  916. ATE1 - turn on the echoing of modem commands. ATH0 - hang up (go on
  917. hook). ATM0 - speaker always off. ATM1 - speaker on while dialing
  918. until connection established. ATV1 - verbal result codes (sends
  919. “CONNECT” instead of just “1”). ATZ - reset modem to default
  920. configuration. ATS0=1 - set modem to auto answer after one ring.
  921. ATS0=0 - turn off auto answer.
  922.  
  923. 7.    High Speed Modems
  924.  
  925. High speed modems would include 9600 bps or higher modems and also
  926. 2400 bps modems with compression and error control protocols like MNP,
  927. V.42 and V.42bis.
  928.  
  929. Maximizing the Efficiency To get the most out of a high speed modem,
  930. you may need to change the configuration some from the factory
  931. settings.  Because the compression and error correction features can
  932. make the expected throughput somewhat variable, it is best to set the
  933. data rate between your Mac and the modem to a higher speed.  This is
  934. often called “locking the port” at a higher speed.  For 9600 bps
  935. modems, you would normally set the interface to either 19200 or 38400.
  936. In addition, you should use a “Hardware Handshaking” cable so the Mac
  937. and the modem can handle the variable throughput.  All Macintosh
  938. models since the Mac Plus can take advantage of hardware handshaking.
  939. The Mac 128, Mac 512K and Mac 512KE cannot use hardware handshake
  940. because the serial ports have only one of the two necessary control
  941. signals available.
  942.  
  943. These are the things you need to do to set all this up: • Set ZTerm to
  944. a fast data rate in the Connection settings (38400 for a 9600bps
  945. modem). • Set ZTerm to use Hardware Handshaking in the Connection
  946. settings. • Connect the Mac to the modem with a Hardware Handshake
  947. cable (see Appendix). • Set the modem to use a fixed DTE speed (&B1
  948. for a USR HST). • Set the modem to ignore DTR (&D0 for a USR HST). •
  949. Set the modem to use CTS transmit flow control (&H1 for a USR HST). •
  950. Set the modem to use RTS receive flow control (&I0 &R2 for a USR HST).
  951. (I don’t have a USR modem, but I believe these commands are correct.)
  952.  
  953. Modem Standards V.32 is the CCITT (international) standard for
  954. modulation (the way a modem converts bits into sounds that can be
  955. carried by the voice telephone system) at 4800 and 9600 bps,
  956. full-duplex on voice-grade two-wire dial-up and leased telephone
  957. lines.  It was adopted in 1984.
  958.  
  959. V.32bis, which was adopted in early 1991, is 100% backward compatible
  960. with V.32.  In addition, it supports rates of 7200, 12000 and 14400
  961. bps.  It also supports a “rapid rate renegotiation” capability, which
  962. allows the modems to change speeds up or down in as little as 1/10th
  963. of a second, for example, to handle changes in line conditions (V.32
  964. requires full retrain to change speeds, which can take 5 to 10
  965. seconds).
  966.  
  967. V.42 is the CCITT standard for error control in modems.  It defines
  968. two protocols: the primary protocol, LAPM, on which all future
  969. extensions to the standard will be based, and an Alternative protocol,
  970. defined in an annex, which provides for backward compatibility with
  971. modems that implement MNP classes 2-4.  V.42 can be used with any
  972. full-duplex modem that uses async-to-sync conversion (e.g. V.22,
  973. V.22bis, V.26ter, V.32, V.32bis).
  974.  
  975. V.42bis is the CCITT standard for data compression in modems.  It is
  976. based on the Lempel-Ziv-Welch technique, with extensions from IBM,
  977. British Telecom, and Hayes, and can provide up to 4-to-1 compression
  978. on certain types of data.  It is currently standardized for use only
  979. in conjunction with v.42 LAPM.  V.42bis doesn’t imply the
  980. implementation of any particular modulation scheme; specifically, you
  981. can’t assume that a V.42bis modem also supports V.32 or V.32bis.
  982.  
  983. 8.    Trouble Shooting
  984.  
  985. Problem:  Can’t talk to the modem. Things to check:  Make sure the
  986. modem cable is connected to the port selected in the Modem
  987. Preferences.  If the SD light on the modem (Send Data) does not blink
  988. when you type in ZTerm, you probably have a cable problem.  Try typing
  989. ATH then hit Return; if the modem responds with OK on the next line,
  990. then you are talking to the modem.
  991.  
  992. Problem: You get the message “NO DIAL TONE” when trying to dial.
  993. Possible causes:  The modem is not connected to a phone line.  Someone
  994. else is using the phone.
  995.  
  996. Problem: During an XModem or YModem transfer, it keeps getting errors
  997. after 2176 or 17408 bytes. Possible cause: something in the data path
  998. (like a terminal server) is not passing on the XON or XOFF character.
  999. For X/YModem, all characters must be passed through.  See if the
  1000. terminal server has a binary mode.
  1001.  
  1002. Problem: During a ZModem transfer, lots of errors occur after the
  1003. first few blocks. Possible cause:  a flow control problem with one of
  1004. the machines.  Try setting a window limit to see if that helps.  If
  1005. you are sending, go to the ZModem Options and put 2048 in for the
  1006. Window Limit.  If you are receiving from a unix system (using sz), try
  1007. the command “sz -w 2048 <filename>”.
  1008.  
  1009. Problem: Modem hangs up during a download or when receiving lots of
  1010. text. Fix: If you are using hardware handshaking, you need to
  1011. configure your modem to ignore the DTR line. 9.    Menu Reference
  1012.  
  1013. The Apple Menu
  1014.     The Apple menu has information about ZTerm and any desk
  1015. accessories currently available.
  1016.  
  1017. About ZTerm…    This brings up a dialog giving information about the
  1018. program, the version number and registration information.
  1019.  
  1020.  
  1021.  
  1022.  
  1023. The File Menu
  1024.  
  1025. Start Capture…    This is ASCII capture that will save all received
  1026. characters to the selected file.  When capture is active, the menu
  1027. will read Stop Capture.
  1028.  
  1029. Send Text…    After selecting a TEXT file, this will send the characters
  1030. of the file.  The transmission will be paced by options selected in
  1031. the Text Pacing settings.
  1032.  
  1033. Close Window    Closes the front window.
  1034.  
  1035. Receive File(s)…    This menu has a sub-menu for the various protocol
  1036. receive options.  XModem receive will put up the normal Save dialog so
  1037. you can select the file name and folder to put the received file in.
  1038. The other options all get a file name from the sender and store the
  1039. file in the current receive folder (currently the same as the default
  1040. folder).
  1041.  
  1042. XModem    XModem is one of the most common transfer protocols for
  1043. personal computers.  The Transfer Options settings let you select what
  1044. type of error checking is requested (CRC or Checksum).  ZTerm's XModem
  1045. will accept 1024 or 128 byte blocks;  the sender selects the size of
  1046. blocks.
  1047.  
  1048. YModem    YModem is based on XModem, but the sending program also sends
  1049. the file name, the size and the date of the file.  This protocol is
  1050. often called YModem Batch because many files can be sent in a batch.
  1051.  
  1052. YModem-G    YModem-G is a variation of YModem that is meant for error
  1053. free connections like a direct connection.  There is no wait at the
  1054. end of a block for the receiver to Acknowledge.  The receiver only
  1055. signals if an error occurs, in which case the transfer is stopped.
  1056.  
  1057. ZModem    This is normally not needed because ZTerm detects the sender
  1058. starting a ZModem transfer and automatically starts a ZModem receive.
  1059. This is called AutoDownload in ZModem parlance.  Files are stored in
  1060. the current receive volume and folder.  For example, if you are
  1061. connected to an Opus BBS, you can type "dz stuffit.sit" and Opus will
  1062. start the transfer.  ZTerm will detect this and receive the file.
  1063.  
  1064. (Default Receive)    The item after “Receive Files” in the File menu is
  1065. the default receive option for the current Setup.  You should set the
  1066. default to the normal method you use to receive files for each setup.
  1067. Then you can just select this item (or Command-R) to receive a file.
  1068. The default can be set in the Transfer Options dialog.
  1069.  
  1070. Send File(s)…    This menu has a sub-menu for the various protocol file
  1071. send options.
  1072.  
  1073. XModem    Send a file using the XModem protocol (with 128 byte blocks).
  1074. The receiving program determines wether CRC or checksum is used for
  1075. error detection; ZTerm will handle either.
  1076.  
  1077. XModem-1K    Like XModem, above, but using 1024 byte blocks.  Some
  1078. communication software (including BBS's) mistakenly refer to this as
  1079. YModem.
  1080.  
  1081. YModem-128    Send file(s) using the YModem protocol with 128 byte
  1082. blocks.  This is not normally used.  You would usually want to use
  1083. 1024 byte blocks whenever possible.
  1084.  
  1085. YModem-1K    Send file(s) using the YModem protocol with 1024 byte
  1086. blocks.
  1087.  
  1088. ZModem    Send file(s) using the ZModem protocol.  After the files are
  1089. selected and Start is clicked, ZTerm will first send the characters
  1090. set up in the ZModem Options dialog.  This is usually needed to get
  1091. the other computer ready to receive files using the ZModem protocol.
  1092. After these characters are sent, the transfer will begin.
  1093.  
  1094. (Default Send)    The next item in the File menu is the default send
  1095. option for the current Setup.  You should set the default to the
  1096. normal method you use to send files for each setup.  Then you can just
  1097. select this item (or Command-S) to send a file.  The default can be
  1098. set in the Transfer Options dialog.
  1099.  
  1100. Transfer Convert    This menu has a sub-menu to select the desired
  1101. file transfer conversion option.  You can set the default conversion
  1102. for each setup by holding the Command key while you select the desired
  1103. conversion option.
  1104.  
  1105. Smart MacBinary    On receive, MacBinary files and text file are
  1106. automatically detected and converted as appropriate.  All other files
  1107. are received as binary.  On send, TEXT files are sent as text, files
  1108. received as binary by ZTerm are sent as binary and all other files are
  1109. sent as MacBinary II.  This is the best option if you will be sending
  1110. a mix of MacBinary files and other files.
  1111.  
  1112. Always MacBinary    This option would be useful when connected to
  1113. another Macintosh.  All files are sent as MacBinary II, even text
  1114. files.  Receive uses the same detection of Text and MacBinary files
  1115. used by Smart MacBinary.
  1116.  
  1117. Binary Data    On receive, all files will be received as binary files
  1118. with no conversion.  On send, all files will be sent as binary and
  1119. only the data fork will be sent.
  1120.  
  1121. Text    Receive with this option is a little more lenient in its text
  1122. detection than Smart MacBinary.  On send, the data fork of a file is
  1123. sent with appropriate text conversion.
  1124.  
  1125. Append to…    Will append the selected text to a file you specify.  It
  1126. also will remember the file, so you can append addition text to the
  1127. same file using the next command.
  1128.  
  1129. Append to <last>    Will append the selected text to the last file
  1130. that text was added to for this service.
  1131.  
  1132. Save Selection    If there is a block of text selected in the scroll
  1133. back buffer, this will put up the standard Save dialog to save the
  1134. selection to disk.
  1135.  
  1136. Page Setup…    Will present the standard page setup dialog, where you can
  1137. select the paper orientation and other options.  Note that margins and
  1138. the print font can be set with Printer Preferences in the Settings
  1139. menu.
  1140.  
  1141. Print Selection    This will print the text selection to the printer.
  1142.  
  1143. Quit    This will exit ZTerm.  If the current setup has been changed,
  1144. it will ask if the setup should be saved.
  1145.  
  1146.  
  1147. Edit Menu
  1148.  
  1149. Undo    For use by desk accessories.  Not used by ZTerm.
  1150.  
  1151. Cut    Copy the selection to the clipboard and then remove it from the
  1152. scroll back buffer.
  1153.  
  1154. Copy    Copy the selection to the clipboard.
  1155.  
  1156. Paste    Start sending the text that is on the clipboard.  This can be
  1157. stopped by pressing Command-period.
  1158.  
  1159. Clear    This will remove the selection from the scroll back buffer.
  1160.  
  1161. Copy to Modem    Copy the selection to the clipboard, then paste.
  1162.  
  1163. Select All    Selects all the text in the buffer and the current screen.
  1164.  
  1165. Keyboard Buffer    This will open the Keyboard Buffer window.  You can
  1166. enter a line here and when you hit RETURN, the whole line is sent out
  1167. the serial channel.  This is especially useful for online conferences.
  1168.  
  1169. Find…    This will let you search the Scroll Back buffer.  The search
  1170. is case insensitive; searching for MAC will find Macintosh and Mac.
  1171. The line that the match appears in will be selected (and highlighted).
  1172. The search begins from the top of the buffer (the oldest line).
  1173. Clicking on the Find button again will find the next occurrence.  If
  1174. you change the find string, it will reset the find position so that it
  1175. will start again at the top of the buffer when you click Find again.
  1176.  
  1177. Find Again    This will repeat the last search.
  1178.  
  1179. Clear Scroll Buffer…    This command will clear all lines from the
  1180. Scroll Back buffer.  After you log off a service and have reviewed the
  1181. buffer and printed or saved any portions that you want to preserve,
  1182. you might want to clear the buffer before calling another service.  If
  1183. you hold down the Shift key it will also clear the current terminal
  1184. screen.  This item will prompt you to make sure you want to clear the
  1185. buffer if the confirmation option is enabled.
  1186.  
  1187. Save Lines Off Top    When this is checked, ZTerm will save lines to the
  1188. scroll buffer when they are scrolled off by a line feed or clear
  1189. screen sequence.  This is normally checked, but there are a few
  1190. situations where you might want to turn it off.
  1191.  
  1192.  
  1193. Dial Menu
  1194.  
  1195. Directory…    This will display the Dialing Directory window, which
  1196. lists all the current services in your phone list.  You can add,
  1197. delete or modify services from this window.  The Manual button will
  1198. ask you for a number and then will dial it (to try a number without
  1199. adding it to your phone list).
  1200.  
  1201. Save Setup    This will save the current settings to the current
  1202. service.
  1203.  
  1204. Dial Marked    This will start queued dialing of all marked entries in
  1205. the Dial menu.  If no entries are marked, it will mark the current
  1206. service and just dial that one.  Entries can be marked in the dialing
  1207. directory or by holding down Shift and selecting the entry.  An entry
  1208. is automatically marked when a dial attempt returns a non-CONNECT
  1209. response.  Hold down Shift when you select this and it will mark all
  1210. entries; hold down Shift-Option and it will unmark all entries.
  1211.  
  1212. Hang Up    Will hang up the modem.  An option in Modem Preferences lets
  1213. you select hang up by pulsing the DTR line.  Otherwise it will hang up
  1214. by sending the command mode escape (+++) followed by the hangup
  1215. command (ATH0).  This item will prompt you to make sure you want to
  1216. hang up if the confirmation option is enabled in General Preferences.
  1217.  
  1218. (dial entries)    Selecting the name of a service will change the
  1219. settings as they were saved for the service, then dial the phone
  1220. number (if any) until a connection is made or the dialing is Canceled.
  1221.  
  1222.     If you hold down Option when you select a service, it will load
  1223. the settings, but won’t dial the phone number.  If you hold down the
  1224. Command key when you select a service, that service will become the
  1225. default (and the menu item will be outlined).  If you hold down Shift,
  1226. the entry will be marked (or unmarked) for Queue Dialing.
  1227.  
  1228. Settings Menu
  1229.  
  1230. Connection…    This will bring up the connection dialog. You can rename
  1231. the service by changing the name here.  This name will appear in the
  1232. dialing directory and the Dial menu, so you don’t want a super long
  1233. name.  You can change the phone number for the service.  Leave it
  1234. blank if its a direct connection to another computer.  You can put a
  1235. modem command in the PreDial init field, which will be sent before
  1236. dialing the service.  You can put your account and password in these
  1237. fields; the values can be accessed from a script.
  1238.  
  1239.     The data rate and other communication settings are here.  Choose 8
  1240. data bits and no parity, unless you know that another format is
  1241. required.  The most common alternative is 7 data bits with either even
  1242. or odd parity.  This is more common on mainframes; almost all bulletin
  1243. boards that run on personal computers will accept 8 data bits, no
  1244. parity.  One stop bit will work in most situations.
  1245.  
  1246.     Check the Local Echo option if the service does not echo what you
  1247. type.  Most BBSs do echo what you type, so in most cases you leave
  1248. this unchecked.  You can usually leave XOn/XOff checked because most
  1249. services support it.  If you have a high speed modem and a hardware
  1250. handshake cable, check that option, and see the section on high speed
  1251. modems.
  1252.  
  1253. Terminal…    The terminal settings dialog lets you select various
  1254. terminal emulation options.  You can select if extended characters
  1255. should be displayed.  Turning Auto Line Feed on will cause a line feed
  1256. when a return is received.  Line feeds are ignored when they directly
  1257. follow a return.  Leave the Auto Line Feed off if the service is a
  1258. unix or DEC machine.  If VT100 keypad is turned off, it will just send
  1259. the character marked on the key.
  1260.  
  1261.     You can select if the Backspace key should produce a RUBOUT (or
  1262. DELETE) character code, which many DEC systems expect.  Enabling
  1263. Destructive Backspace will cause the previous character to be erased
  1264. when the backspace code is received.  You can select VT100 or PC
  1265. ANSI-BBS emulation.
  1266.  
  1267. Text Pacing…    These options are used for ASCII send and Paste.  Wait
  1268. for character echo will wait for the host to echo the character. There
  1269. is a five second timeout.  If wait for echo is not selected, it will
  1270. use the Delay between Characters and Delay between Lines (which is
  1271. used after a return is sent).
  1272.  
  1273.     If a Line Prompt Char is specified, it will wait for that
  1274. character to be received after sending a Return.  You can set this to
  1275. a prompt character that your host uses when it is ready for the next
  1276. line of text.
  1277.  
  1278. Transfer Options…    The first two items set the default send and
  1279. receive protocols for this service.  These make it more convenient to
  1280. start a transfer with each service.  Command-R will start a file
  1281. receive with the default protocol and Command-S will start a file send
  1282. (default send protocol).  Note that the B-Plus or Quick-B protocols
  1283. used by Compuserve are not listed.  This is because a B-Plus transfer
  1284. on Compuserve is started by the Compuserve host by sending a special
  1285. sequence.  There is no menu in ZTerm to start a B-Plus transfer.  If
  1286. the service you are setting up is Compuserve, make sure you check the
  1287. “CIS B+ / Quick-B Protocol” option.
  1288.  
  1289.     For X/YModem Error Checking, the “Try CRC, fallback to Checksum”
  1290. option is usually the best.  Send CK for CRC-1K should be used for
  1291. systems (like Second Sight) which use this popular XModem extension to
  1292. allow the receiver to request 1k blocks.  Use Checksum Only could be
  1293. used with systems that don't support XModem CRC error checking.  For
  1294. the Sent Filenames option, the safest choice is “Remove funny
  1295. characters.”  If the service is a BBS running on an MS-DOS computer,
  1296. you will want to select “MS-DOS (8.3) limits.”
  1297.  
  1298. ZModem Options…    Some of the items in this dialog are not implemented
  1299. yet.  “Command to start receive at other end” lets you define the
  1300. character sequence that will be sent to the other system when you want
  1301. to start sending file(s) to it using ZModem.  For Opus it should be
  1302. “uz^M”.  ZTerm will send this string when you start a ZModem file
  1303. send.
  1304.  
  1305.     The next part of the dialog lets you select the SubPacket length
  1306. for ZModem file sends.  The sending system always makes this choice.
  1307. The “Auto” option will choose a size depending on the data rate.
  1308. Window Limit can be used to enable ZModem’s sliding window mode when
  1309. sending files.  This can solve problems with buffer overruns.  The
  1310. value should be a multiple of 512; typical values are 2048 or 1024.
  1311. When this field is blank, it will not use sliding window mode.
  1312.  
  1313.     Escape Controls can be checked if any part of your transmission
  1314. path chokes on control characters.  ZModem always escapes ^P, ^Q, ^S,
  1315. ^X and their high bit set counterparts.  Escape controls will cause it
  1316. to escape all control characters.
  1317.  
  1318. General Preferences..    The first item selects what application to use
  1319. for TEXT files.  When you save a text file in ZTerm, it will be marked
  1320. as created by the selected application.  The creator code is listed to
  1321. the right; its a 4 character sequence that identifies an application
  1322. program.  This will affect the icon displayed for a text file created
  1323. by ZTerm and also selects the application that should be opened if you
  1324. double clicked on the text file.  You can also set the creator and
  1325. file types used for unrecognized binary files.  The normal values are
  1326. ????/????.
  1327.  
  1328.     The logging of file transfers is enabled with the Log File
  1329. Transfers option.  You can enable a confirmation request before Quit,
  1330. Hang Up or Clear Buffer is performed.
  1331.  
  1332. Terminal Preferences    This dialog lets you select the type size for
  1333. the terminal window (9 or 12 point will work best).  You can set the
  1334. cursor to an underline or a block, and whether it blinks.  The Hide
  1335. Terminal Window in background option can be used to reduce screen
  1336. clutter with MultiFinder or System 7.
  1337.  
  1338.     The Command Key item lets you redefine how the Command key is
  1339. used.  Normal lets you select key equivalents for menu commands, like
  1340. Command-Q for Quit.  Control lets you use the Command key to generate
  1341. Control characters.  Meta (8th bit) and Meta (ESC prefix) are useful
  1342. with the EMACs editor on Unix machines.  Option for Control, which
  1343. only appears if your keyboard does not have a control key, is another
  1344. way to get control characters.
  1345.  
  1346.     Capture Text by line will cause the capture function to write out
  1347. the current line of text when a line feed is performed.  This will
  1348. strip out any escape sequences.  If this is not checked, all received
  1349. characters (except LF) are written to a capture file.  The Ignore Bell
  1350. option will tell ZTerm not to beep when a bell character is
  1351. received.The duration of the break signal (and Shift Break) is set
  1352. here, in 60ths of a second.
  1353.  
  1354. Printer Preferences…    Here you select the font and size used by
  1355. Print Selection.  You can also turn off headers on the printout.  You
  1356. can also set the margins used for printing.  Note that the right
  1357. margin value is not used.
  1358.  
  1359. Modem Preferences..    The first item selects which serial port to use.
  1360. You can modify the modem initialization string in this dialog.  This
  1361. string is sent when ZTerm starts up (except when the default setup has
  1362. no phone number, i.e. a direct connection).  The string is also sent
  1363. if you hold down Option when selecting Reset Terminal.  The
  1364. DeInitialize string is like the Initialization string, but it is sent
  1365. when you quit ZTerm.  You can usually leave this blank, but you may
  1366. want to use it to disable something that you turned on in the init
  1367. string.  For example, if your init string turns on the auto answer
  1368. feature of the modem, you may want to turn it off when you exit ZTerm.
  1369.  
  1370.     The Dial Substitution strings can be used for things that could be
  1371. common to several services.  I have set •1 to “*70,” which will
  1372. disable call waiting.  Then I can put •1 in front of the phone number
  1373. for a service, and it will dial the *70 first.  The comma after the
  1374. zero causes a pause in the dialing, usually one second.  You could use
  1375. one of the dial substitutions for your long distance numbers.  You
  1376. might normally set it to “1”, so it will use your normal long distance
  1377. carrier, but if you wanted to try another, you could change the string
  1378. to something like 10288, which will dial long distance using AT&T.
  1379.  
  1380.     The Dial timeout is how many seconds ZTerm will wait for a
  1381. response from the modem after sending a dial command.  A value of 60
  1382. is pretty reasonable.  You can select Pulse dialing with the check
  1383. box.  The Hardware Hangup option is an alternative (faster) way to
  1384. tell a modem to hang up.  The DTR line is only available on MacPlus
  1385. and later machines.  Your modem cable must be wired correctly for this
  1386. to work, and your modem has to be set up correctly.  Also, you can’t
  1387. use hardware handshaking and Hardware Hangup — they both use the same
  1388. line.  (Some have a switch to ignore the DTR line.)
  1389.  
  1390. Color…    This dialog lets you enable the use of color and make some
  1391. color settings.  Swap Black & White reverses the meaning of the escape
  1392. sequences that set the foreground or background color to black or
  1393. white.  I don’t know if it helps any, but I put this in because Opus
  1394. likes to show colored text on a black background, which is the norm
  1395. for the PC world.  This option should make it more normal for the Mac
  1396. world (white background).  The Text and Background Default Colors are
  1397. used when no ANSI sequence sets the colors to something else.  The
  1398. defaults are also used when you view text in the scroll back buffer.
  1399.  
  1400. Receive Folder…    This will let you select the folder for file
  1401. transfers, where received files will be stored.
  1402.  
  1403. Macros Menu Edit Macros…    You can define the string that is sent for
  1404. each macro key (Command-1 thru Command-0) and the label for each
  1405. macro.  The labels are used in the lower portion of the menu.  Control
  1406. characters can be entered with a ^ (caret) followed by the letter (^M
  1407. for a return).  If the string starts with ® (Option-R) then a file
  1408. name, ZTerm will try to run that script file when you select that
  1409. macro.
  1410.  
  1411. Macro Sets…    This lets you create a new macro set, rename a set, delete
  1412. a set or select the set to be used by the current service.  Each set
  1413. hold 10 macros, each with a label that appears in the menu.
  1414.  
  1415. Run a Script…    This lets you manually start a script running.  See
  1416. the section on scripting for more information on scripts.
  1417.  
  1418. (macros)    The labels of the current macro set are listed in the
  1419. menu.  Selecting one will cause that macro to be sent out.
  1420.  
  1421.  
  1422. Misc Menu
  1423.  
  1424. Clear Screen    Need I say more?
  1425.  
  1426. Send Break    This will send a break signal.  If the Shift key is down,
  1427. it will use a different duration.  The durations are set in Terminal
  1428. Preferences.
  1429.  
  1430. Help…    This will display a dialog of ZTerm basics.
  1431.  
  1432. Support…    This will display a dialog giving information on how to
  1433. reach me.
  1434.  
  1435. Reset Terminal    This function clears the screen, and resets many
  1436. screen settings to a normal setting.  If you hold down the Option key,
  1437. it will also send the modem initialization string.
  1438.  
  1439. Show Controls    This is primarily a diagnostic tool to let you see
  1440. control characters and escape sequences.  This does not affect what is
  1441. already on the screen; it only affects the display of incoming
  1442. characters.  The characters of an escape sequence will be displayed,
  1443. but the function will not be performed (except carriage return and
  1444. line feed).
  1445.  
  1446. Port Stats…    This shows some statistics about the maximum number of
  1447. characters that have been waiting in the serial driver’s input buffer.
  1448.  
  1449. Purge Buffer    This will purge any characters in the serial input
  1450. buffer until there is two seconds of no data.  It will timeout after
  1451. 20 seconds of purging.  If you hold down Option, it will write out a
  1452. file with the contents of the serial input buffer (to help diagnose
  1453. unusual problems).
  1454.  
  1455. Appendices
  1456.  
  1457. Key Sequences
  1458.  
  1459. This table shows the many command key equivalents you can use in
  1460. ZTerm.
  1461.  
  1462. Cmd-A - Select All. Cmd-B - Send a BREAK. Cmd-Shift-B - Send a long
  1463. BREAK. Cmd-C - Copy selection to clipboard. Cmd-D - Open dialing
  1464. directory. Cmd-Shift-D - Dial Marked services. Cmd-E - Edit
  1465. Connection. Cmd-Shift-E - Toggle local echo. Cmd-F - Find. Cmd-G -
  1466. Find Again. Cmd-H - Hangup. Cmd-K - Keyboard Buffer (for online
  1467. conferences). Cmd-L - Clear the scroll buffer. Cmd-Shift-L - Clear the
  1468. screen and scroll buffer. Cmd-M - Copy selection to modem. Cmd-N -
  1469. Append selection to file. Cmd-Shift-N - Append selection to last
  1470. append file for this service. Cmd-P - Print Selection. Cmd-Q - Quit.
  1471. Cmd-R - Receive file with default receive protocol for this service.
  1472. Cmd-S - Send file(s) with the default send protocol for this service.
  1473. Cmd-T - Terminal settings. Cmd-V - Paste to modem. Cmd-W - Close
  1474. Window. Cmd-X - Cut the selection to the clipboard. Cmd-Z - Undo (for
  1475. desk accessories).
  1476.  
  1477. When the Dialing Directory window is in front: Cmd-C - Edit connection
  1478. settings. Cmd-D - Dial highlighted service. Cmd-M - Mark the
  1479. highlighted service. Cmd-Shift-M - Mark all services. Cmd-N - Add a
  1480. New service. Cmd-Q - Queue dial (Dial marked services). Cmd-S - Change
  1481. to settings for the highlighted service. Cmd-T - Terminal settings.
  1482. Cmd-U - UnMark the highlighted service. Cmd-Shift-U - UnMark all
  1483. services. Space or Down Arrow - move highlight down. BackSpace or Up
  1484. Arrow - move highlight up. Shift Click - toggle the mark for the
  1485. service. Command Click - Make the service the startup default. Any
  1486. letter - move highlight to matching service name. Double Click on a
  1487. service - Edit connection settings.
  1488.  
  1489. Keyboard Mapping On the MacPlus and Mac 512, ZTerm remaps the keyboard
  1490. using the Toolbox's Script Manager using a custom KCHR resource.  This
  1491. will allow you to use the Option key like a control key, and to add
  1492. arrow keys to the antique original keyboard.  This remapping is
  1493. enabled in the Terminal Preferences: use Option for Control.  If
  1494. ZTerm's remapping is not desirable (if you have an international
  1495. keyboard with a different layout or yours is modified for Dvorak), you
  1496. can turn this off.  The Script Manager is only in System 4.1 and
  1497. later, so this Option for Control remapping will not work on older
  1498. systems.
  1499.  
  1500. The mapping below is only for MacPlus and earlier, when Option for
  1501. Control is enabled: UP    Option = LEFT    Option [ Right    Option ] Down
  1502. Option '    (These 4 make up a diamond on the old keyboards.) ESC    `
  1503. (Accent grave)
  1504.  
  1505.  
  1506. For all keyboards: Cmd-Enter    send a break Control-Space NUL
  1507. Control-2    NUL Control-4    ^/ (FS) Control-5    ^] (GS) Control-6    ^^
  1508. (RS) Control-7    ^_ (US)
  1509.  
  1510.  
  1511. Extended keyboard: F1    VT220 F6    esc[17~ F2    VT220 F7    esc[18~ F3
  1512. VT220 F8    esc[19~ F4    VT220 F9    esc[20~ F5    VT220 F10    esc[21~ F6
  1513. VT220 F11    esc[23~ F7    VT220 F12    esc[24~ F8    VT220 F13    esc[25~ F9
  1514. VT220 F14    esc[26~ F10    VT220 F15    esc[28~ F11    VT220 F16    esc[29~
  1515. F12    VT220 F17    esc[31~ F13    VT220 F18    esc[32~ F14    VT220 F19 esc[33~
  1516. F15    VT220 F20    esc[34~
  1517.  
  1518. help        VT220 Find        esc[1~ home        VT220 Ins here    esc[2~
  1519. page up    VT220 Remove    esc[3~ del        VT220 Sel        esc[4~ end
  1520. VT220 Prev        esc[5~ page down    VT220 Next        esc[6~
  1521.  
  1522. Error and Other Messages
  1523.  
  1524. During a File Transfer CRC Err, Checksum Err - an error was
  1525. encountered in the block of data and it must be resent. Got sector
  1526. header xxx - an invalid character was received instead of the start of
  1527. block character. Hdr CRC error, @ xxxx - an error occurred in the
  1528. ZModem block header, xxxx is the current position in the received
  1529. file. Data CRC error, @ xxxx - an error occurred in the ZModem data
  1530. block, xxxx is the current position in the received file. No ACK on
  1531. EOT - the receiver did not acknowledge the end of file message.
  1532. Timeout on sector ACK - no acknowledge was received for the block in
  1533. the allotted time. NAK on sector - the receiver got an error in the
  1534. block and requests retransmission. Got burst for sector ACK - when
  1535. waiting for the sector acknowledge, several characters were received
  1536. (perhaps from line noise). No ACK, got a xxx - when waiting for
  1537. acknowledge, the character xxx was received. Got ZRPOS = xxxx - the
  1538. received got an error and requests retransmission starting at file
  1539. offset xxxx.
  1540.  
  1541. Modem Cables Macintosh (Mini DIN-8) Serial Connectors (Mac Plus and
  1542. later) (This diagram is the connector on the end of a modem cable that
  1543. you plug into your Mac.)
  1544.  
  1545.  
  1546. Pin    Name        Description/Notes 1    HSKo        Output Handshake (from
  1547. Zilog 8530 DTR pin) 2    HSKi/Ext Clk    Input Handshake (CTS) or TRxC
  1548. (depends on 8530 mode) 3    TxD–        Transmit Data line 4    Ground
  1549. 5    RxD–        Receive Data line 6    TxD+        Transmit Data line 7
  1550. GPi/DCD    General Purpose Input (not all models) 8    RxD+ Receive Data
  1551. line; ground this line to emulate RS232
  1552.  
  1553.  
  1554. Mac DIN-8 to MODEM - Hardware Handshaking
  1555.  
  1556. Mac            Modem (DB-25) 1 (HSKout)     ->    4 (RTS) 2 (HSKin)    <-    5
  1557. (CTS) 3 (TxD-)    ->    2 (TxD) 4 (GND)    <->    7 (Signal Gnd) 5 (RxD-)    <-    3
  1558. (RxD) 6 (TxD+)    --    NONE 7 (GPi)    <-    8 (DCD) - not currently used
  1559. by ZTerm 8 (RxD+)    <-    7 (Gnd)
  1560.  
  1561. Note: This is my recommendation for the cable wiring.  Pin 7 (GPi) is
  1562. not currently used and I don’t know if any off-the-shelf cables have
  1563. pin 7 connected.  Some hardware handshake cables will have pin 20
  1564. (DTR) on the modem connected to Mac pin 1 (in addition to pin 4 RTS).
  1565. This is OK but you MUST remember to configure the modem to ignore the
  1566. DTR line.  MacConnection is selling a cable labeled ‘Mac+ to MNP
  1567. modem’ that is like this (pin 1 to 4 & 20 of the modem).
  1568.  
  1569. Mac DIN-8 to MODEM - Typical Non-Hardware Handshaking
  1570.  
  1571. Mac            Modem (DB-25) 1 (HSKout)     ->    20 (DTR) 2 (HSKin)    <-    6
  1572. (CTS) & 8 (DCD) 3 (TxD-)    ->    2 (TxD) 4 (GND)    <->    7 (Signal Gnd) 5
  1573. (RxD-)    <-    3 (RxD) 6 (TxD+)    --    NONE 7 (GPi)    <-    NONE 8 (RxD+)
  1574. <-    7 (Gnd) Macintosh 512, 128 Serial Connectors (DB-9) (This diagram
  1575. is the connector on the end of a modem cable that you plug into your
  1576. Mac.)
  1577.  
  1578.   
  1579. Pin    Name    Description/Notes 1    Ground 2    +5V     See Hardware
  1580. reference for power limits 3    Ground 4    TxD+    Transmit Data line
  1581. 5    TxD–    Transmit Data line 6    +12V    See Hardware reference for
  1582. power limits 7    HSK    HandShaKe: CTS or TRxC, depends on Zilog 8530 mode
  1583. 8    RxD+    Receive Data line; ground this line to emulate RS232 9
  1584. RxD–    Receive Data line
  1585.  
  1586. Mac 512, 128 (DB-9) to MODEM
  1587.  
  1588. Mac            Modem 1 (GND)    <->    1 (Gnd) 3 (GND)    <->    7 (Signal Gnd) 4
  1589. (TxD+)    --    NONE 5 (TxD-)    ->    2 (TxD) 6 (+12v)     ->    20 (DTR) 7
  1590. (HSKin)    <-    6 (CTS) & 8 (DCD) 8 (RxD+)    <-    7 (Signal Gnd) 9 (RxD-)    <-
  1591. 3 (RxD) Resources ZTerm does not save any of its settings in the ZTerm
  1592. file.  All settings are stored in the PhoneList file.  You can lock
  1593. the ZTerm application for some protection against viruses.
  1594.  
  1595. Binary File Type Detection When a file is received that is not in
  1596. MacBinary format and is not text, ZTerm will see if it is a known
  1597. type.  If it is, ZTerm will set the appropriate creator and type. This
  1598. is especially helpful to those transfering files from other computer
  1599. systems.
  1600.  
  1601. There is a resource which contains file creator and types, with
  1602. identifying information.  If you are handy with ResEdit, you can add
  1603. additional types to this resource.  The resource is STR# 335.  Each
  1604. string in the list is one binary type detector.  There are currently
  1605. two types of detectors: type 0 looks for a signature (a sequence of
  1606. bytes at the start of the file), and type 1 which just looks at the
  1607. end of the file name (eg, the extension if its coming from ms-dos).
  1608. Type 0 is the preferred kind, but some binary files do not have a
  1609. signature.  I may add additional types of detectors; if you have any
  1610. ideas, let me know.
  1611.  
  1612. Each detector string begins with the detector type (0 or 1), then the
  1613. 4 character creator, and the 4 character file type.  Type 0 then
  1614. follows with the signature bytes (any length).  You should try to keep
  1615. the signatures between 2 and 8 bytes.  Type 1 follows with the
  1616. characters to match at the end of the file name (case insensitive).
  1617.  
  1618. Some examples:
  1619.     For GIF files:    0BozoGIFfGIF8
  1620.     For ARC files:    1arc*mArc.ARC
  1621.  
  1622. The first example will set binary files that start with GIF8 to
  1623. creator “Bozo” and type “GIFf”.  The second example will set binary
  1624. files whose name ends with “.ARC” to creator “arc*” and type of
  1625. “mArc”.  This is for ArcMac from DogStar Software.
  1626.  
  1627. The current detectors handle GIF, ZIP, ARC, ZOO and some Lotus, Excel
  1628. and Word file types.  There are a lot more binary file types that you
  1629. might need to transfer to your Mac from other machines.  If you know
  1630. the file signature or typical extension, and the appropriate Mac
  1631. creator/type, please let me know so I can put them in a later release
  1632. of ZTerm.
  1633.  
  1634. The default binary file type is normally a creator and type of ‘????’.
  1635. This is used if the file does not match any of the binary type
  1636. detectors.  You can change this in the General Preferences.
  1637.  
  1638. Sending Files as Binary There is also a list of file types that should
  1639. be uploaded as binary files.  This list is in STR# 330.  Each string
  1640. in the list is a 4 character file type.  The current list includes
  1641. GIF, ZIP, ARC, ???? and zBIN files.  TEXT files that have binary data
  1642. in the first 128 bytes are also sent as binary.
  1643.  
  1644. Sounds ZTerm can now play a sound for some events that occur while you
  1645. are using it.  If the sounds are available, it will play a sound when
  1646. you connect to a service, when a file transfer completes or when the
  1647. BELL character is received.  These sounds are optional.  If the sound
  1648. with the right name is not available, it will just do the normal beep.
  1649. It looks for the sound by its name.  The names it looks for are
  1650. 'connect', 'filedone' and 'termbell'.  Note:  ZTerm plays the sounds
  1651. using the Sound Manager, which is in System 4.1 and later.  I have
  1652. included three sound files for system 7 as part of the ZTerm package
  1653. that you can use, or you can use some other sounds.
  1654.  
  1655. Trimming down ZTerm for floppy only system For those who are running
  1656. on a floppy only system and what the smallest possible program file,
  1657. here are some things you can remove from the ZTerm program with
  1658. ResEdit.  Do not distribute any modified copies of ZTerm.
  1659.  
  1660. There are about 23k worth of fonts in the program.  If you are always
  1661. using 9 point, you could remove all the 12 point FONTs.  If none of
  1662. the internal fonts are found, it will use the Monaco font.  All of the
  1663. STR# resources in the 600’s are used for balloon help; if you don’t
  1664. use System 7, these are not needed.
  1665.  
  1666.  
  1667. About the Author I first started using computers when my brothers
  1668. built a TVT video terminal in the mid 70’s.  We used it to call the
  1669. university computer system.  Then we got an IMSAI 8080 with dual eight
  1670. inch floppy drives!  I wrote a simple educational program in BASIC and
  1671. had it published in Kilobaud magazine.  Just when I was ready to buy a
  1672. newer CP/M machine, the IBM PC came out and I got one.  I programmed
  1673. and played with it for a few years.  Then the Mac came out and I had
  1674. to get one.  I started out programming in BASIC, working on a disk
  1675. sector editor, a hex resource editor, a disassembler (my brother Bob
  1676. did most of the disassembler part, I did the resource stuff) and
  1677. making mods to MacTEP for my own use.  I wrote a program called
  1678. ReadLisa that could read diskettes from the LISA computer and print or
  1679. copy them to a Mac disk.  I uploaded this and actually received three
  1680. payments for it.
  1681.  
  1682. I decided to write ZTerm because I spent a lot of time
  1683. telecommunicating, but I didn’t really like the software that was
  1684. available.  Also, none at that time supported ZModem, which appeared
  1685. to be the best thing to be using.  Thus began the never-ending journey
  1686. of ZTerm.
  1687.  
  1688. Glossary
  1689.  
  1690. ANSI - American National Standards Institute.
  1691.  
  1692. ASCII - American Standard Code for Information Interchange, which
  1693. defines the character codes for letters, numbers, punctuation and
  1694. control characters.  Defined in ANSI X3.4-1986.
  1695.  
  1696. Baud rate - a measure of the number of times per second a signal in a
  1697. communications channel varies, or makes a transition between states
  1698. (states being frequencies, voltage levels, or  phase angles).  Modems
  1699. faster than 300 bps usually transmit more than one bit of information
  1700. for each baud.
  1701.  
  1702. Bits per second - measure of the number of data bits transmitted each
  1703. second in a communications channel.
  1704.  
  1705. Break - a signal to the remote system, usually to interrupt a process.
  1706.  
  1707. Bulletin Board System (BBS) - a system, often run on a personal
  1708. computer, that users can call to exchange messages and files.
  1709.  
  1710. CCITT - International Telegraph and Telephone Consultative Committee.
  1711. They define international standards for modems, among other things.
  1712.  
  1713. Checksum - a method of verifying the integrity of data (not as good as
  1714. CRC).
  1715.  
  1716. CRC - Cyclical Redundancy Check, used to verify the integrity of data.
  1717.  
  1718. Data bits - the number of bits used to make up a character.
  1719.  
  1720. Flow Control - a mechanism for the receiver of data to signal the
  1721. sender to suspend transmission when the receiver cannot handle more
  1722. data.  Typically, the receiver has buffers to hold received data and
  1723. if the buffers get nearly full, it will signal the sender to stop
  1724. while it catches up on processing the data in the buffer.
  1725.  
  1726. Hardware Handshake - a method of flow control using two control lines,
  1727. usually Request to Send (RTS) and Clear to Send (CTS).
  1728.  
  1729. MacBinary - a file format that allows Macintosh files to be stored on
  1730. non-Macintosh computers.  The MacBinary format includes a 128 byte
  1731. header that contains the full Macintosh file name, the file creator
  1732. and type codes, and other directory information.  When you download a
  1733. file in MacBinary format, ZTerm will automatically convert it to the
  1734. normal Macintosh format (unless Transfer Convert is set to Binary
  1735. Data).
  1736.  
  1737. MNP - Microcom Networking Protocol, a suite of compression and error
  1738. correction protocols designed my Microcom.  MNP 5 is a data
  1739. compression protocol.  MNP 2 to 4 are error correction protocols.
  1740.  
  1741. Parity - a method of checking the integrity of each transmitted
  1742. character.
  1743.  
  1744. Protocol, File Transfer - a set of rules that two computers can use to
  1745. send a file from one computer to the other.  A protocol will usually
  1746. provide error detection and correction, by re-sending the portion that
  1747. was received in error.
  1748.  
  1749. Stop Bits - bit(s) used to mark the end of a character during
  1750. transmission.  One stop bit is the most common setting.  More than one
  1751. stop bit was used in days past to slow down transmission for
  1752. mechanical terminals.
  1753.  
  1754. XModem - a file transfer protocol.  This one is the most common on
  1755. personal computer systems.
  1756.  
  1757. YModem - a file transfer protocol.  YModem is similar to XModem, but
  1758. uses larger blocks and sends the file name with the file so that
  1759. multiple files can be sent in a batch.
  1760.  
  1761. ZModem - a file transfer protocol.  ZModem is one of the most robust
  1762. and efficient protocols available.
  1763.  
  1764.